package edu.sctu.zhuyingzhi.month201506.day20150613.Timer;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Timer;

/**
 * Created by Administrator on 2015/6/13.
 */
public class Main {
    public static void main(String[] args) throws ParseException {
        Date1 date1 = new Date1();
        Timer time = new Timer();
        time.schedule(new MyTime(),date1.getDate());

        System.out.println("11111");
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(format.format(date1.getDate()));
    }
}
